import js from "@eslint/js";
import tseslint from 'typescript-eslint';
export default tseslint.config(
   {
        files: ['src/**/*.ts', 'src/*.ts'],
        extends: [
            js.configs.recommended,
            ...tseslint.configs.recommended
        ],
        languageOptions: {
            parserOptions: {
                parser: tseslint.parser
            }
        },
        rules: {
            'no-console': 'warn',
            'no-eval': 'error',
            'camelcase': 'warn',
            'eqeqeq': 'warn',
            'no-empty-function': 'warn',
            'no-var': 'error',
            '@typescript-eslint/no-unused-vars': 'warn',
            'indent': ['warn', 4]
        }
    }
)